package org.jeecg.modules.gongqiang.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.gongqiang.vo.OtherParams;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: order_index_arm
 * @Author: jeecg-boot
 * @Date:   2024-09-12
 * @Version: V1.0
 */
@Data
@TableName("order_index_arm")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="order_index_arm对象", description="order_index_arm")
public class OrderIndexArm implements Serializable {
    private static final long serialVersionUID = 1L;

    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    /**品类*/
    @Excel(name = "策略仓库", width = 15,  dicCode = "target_type")
    @Dict(dicCode = "target_type")
    @ApiModelProperty(value = "策略仓库")
    private java.lang.String indexArmId;
    /**名称*/
    @Excel(name = "交易账号", width = 15)
    @ApiModelProperty(value = "交易账号")
    private java.lang.String tradAccount;
    /**品种*/
    @Excel(name = "交易品种", width = 15)
    @ApiModelProperty(value = "交易品种")
    private java.lang.String tradevariety;
    /**开仓趋势*/
    @Excel(name = "开仓趋势", width = 15)
    @ApiModelProperty(value = "开仓趋势")
    private java.lang.Boolean openTrendKind;
    /**开仓类型1：多单； 2：空单； 3：不限类型*/
    @Excel(name = "开仓类型1：多单； 2：空单； 3：不限类型", width = 15,dicCode = "open_kind_type")
    @Dict(dicCode = "open_kind_type")
    @ApiModelProperty(value = "开仓类型1：多单； 2：空单； 3：不限类型")
    private java.lang.Integer openKind;
    /**同一趋势下只开仓一次*/
    @Excel(name = "同一趋势下只开仓一次", width = 15)
    @ApiModelProperty(value = "同一趋势下只开仓一次")
    private java.lang.Boolean openOnlyOne;
    /**开仓固定手数*/
    @Excel(name = "开仓固定手数", width = 15)
    @ApiModelProperty(value = "开仓固定手数")
    private java.lang.Float fixedLots;
    /**开仓自动手数*/
    @Excel(name = "开仓自动手数", width = 15)
    @ApiModelProperty(value = "开仓自动手数")
    private java.lang.Boolean isAutoLots;
    /**开仓手数自动计算比率（手/万$）*/
    @Excel(name = "开仓手数自动计算比率（手/万$）", width = 15)
    @ApiModelProperty(value = "开仓手数自动计算比率（手/万$）")
    private java.lang.Float lotsRates;
    /**DMI趋势启动点*/
    @Excel(name = "DMI趋势启动点", width = 15)
    @ApiModelProperty(value = "DMI趋势启动点")
    private java.lang.Float dmiA;
    /**DMI趋势启动结束点*/
    @Excel(name = "DMI趋势启动结束点", width = 15)
    @ApiModelProperty(value = "DMI趋势启动结束点")
    private java.lang.Float dmiB;
    /**多方RSI区间小值*/
    @Excel(name = "多方RSI区间小值", width = 15)
    @ApiModelProperty(value = "多方RSI区间小值")
    private java.lang.Float longRsiA;
    /**多方RSI区间大值*/
    @Excel(name = "多方RSI区间大值", width = 15)
    @ApiModelProperty(value = "多方RSI区间大值")
    private java.lang.Float longRsiB;
    /**空方RSI区间小值*/
    @Excel(name = "空方RSI区间小值", width = 15)
    @ApiModelProperty(value = "空方RSI区间小值")
    private java.lang.Float shortRsiA;
    /**空方RSI区间大值*/
    @Excel(name = "空方RSI区间大值", width = 15)
    @ApiModelProperty(value = "空方RSI区间大值")
    private java.lang.Float shortRsiB;
    /**允许CCI*/
    @Excel(name = "允许CCI", width = 15)
    @ApiModelProperty(value = "允许CCI")
    private java.lang.Boolean useCci;
    /**多单CCI阀值*/
    @Excel(name = "多单CCI阀值", width = 15)
    @ApiModelProperty(value = "多单CCI阀值")
    private java.lang.Float longCciLevel;
    /**多单CCI差值（>0）*/
    @Excel(name = "多单CCI差值（>0）", width = 15)
    @ApiModelProperty(value = "多单CCI差值（>0）")
    private java.lang.Float longCciDeviation;
    /**空单CCI阀值*/
    @Excel(name = "空单CCI阀值", width = 15)
    @ApiModelProperty(value = "空单CCI阀值")
    private java.lang.Float shortCciLevel;
    /**空单CCI差值（>0）*/
    @Excel(name = "空单CCI差值（>0）", width = 15)
    @ApiModelProperty(value = "空单CCI差值（>0）")
    private java.lang.Float shortCciDeviation;
    /**止损点数*/
    @Excel(name = "止损点数", width = 15)
    @ApiModelProperty(value = "止损点数")
    private java.lang.Integer stopLoss;
    /**动态止损点（波动率）*/
    @Excel(name = "动态止损点（波动率）", width = 15)
    @ApiModelProperty(value = "动态止损点（波动率）")
    private java.lang.Boolean useAutoStopLoss;
    /**止盈点数*/
    @Excel(name = "止盈点数", width = 15)
    @ApiModelProperty(value = "止盈点数")
    private java.lang.Integer takeProfit;
    /**移损点数*/
    @Excel(name = "移损点数", width = 15)
    @ApiModelProperty(value = "移损点数")
    private java.lang.Integer moveSL;
    /**移盈点数*/
    @Excel(name = "移盈点数", width = 15)
    @ApiModelProperty(value = "移盈点数")
    private java.lang.Integer moveTP;
    /**移损移盈时利润优先*/
    @Excel(name = "移损移盈时利润优先", width = 15)
    @ApiModelProperty(value = "移损移盈时利润优先")
    private java.lang.Boolean profitFirstOnMoveSP;
    /**RSI超买值*/
    @Excel(name = "RSI超买值", width = 15)
    @ApiModelProperty(value = "RSI超买值")
    private java.lang.Float rsiOverBought;
    /**RSI超卖值*/
    @Excel(name = "RSI超卖值", width = 15)
    @ApiModelProperty(value = "RSI超卖值")
    private java.lang.Float rsiOverSold;
    /**持仓趋势反转平仓*/
    @Excel(name = "持仓趋势反转平仓", width = 15)
    @ApiModelProperty(value = "持仓趋势反转平仓")
    private java.lang.Boolean atxTrendRevers;
    /**EMA反转平仓*/
    @Excel(name = "EMA反转平仓", width = 15)
    @ApiModelProperty(value = "EMA反转平仓")
    private java.lang.Boolean emaTrendRevers;
    /**强趋势变弱平仓*/
    @Excel(name = "强趋势变弱平仓", width = 15)
    @ApiModelProperty(value = "强趋势变弱平仓")
    private java.lang.Boolean dmiStrong2Weak;
    /**三色趋势反转平仓*/
    @Excel(name = "三色趋势反转平仓", width = 15)
    @ApiModelProperty(value = "三色趋势反转平仓")
    private java.lang.Boolean trendRevers3;
    /**三色趋势共振*/
    @Excel(name = "三色趋势共振", width = 15)
    @ApiModelProperty(value = "三色趋势共振")
    private java.lang.Boolean same3Trend;
    /**持仓趋势共振*/
    @Excel(name = "持仓趋势共振", width = 15)
    @ApiModelProperty(value = "持仓趋势共振")
    private java.lang.Boolean sameAtxTrend;
    /**DMI趋势逐渐增强*/
    @Excel(name = "DMI趋势逐渐增强", width = 15)
    @ApiModelProperty(value = "DMI趋势逐渐增强")
    private java.lang.Boolean sameStrongDmi;
    /**DMI趋势须比较K线柱数*/
    @Excel(name = "DMI趋势须比较K线柱数", width = 15)
    @ApiModelProperty(value = "DMI趋势须比较K线柱数")
    private java.lang.Integer sameStrongDmiNums;
    /**DMI趋势差值*/
    @Excel(name = "DMI趋势差值", width = 15)
    @ApiModelProperty(value = "DMI趋势差值")
    private java.lang.Float sameStrongDmiDeviation;
    /**EMA同方向开仓*/
    @Excel(name = "EMA同方向开仓", width = 15)
    @ApiModelProperty(value = "EMA同方向开仓")
    private java.lang.Boolean sameEma;
    /**EMA同向时突破或跌破EMA线的K线柱数*/
    @Excel(name = "EMA同向时突破或跌破EMA线的K线柱数", width = 15)
    @ApiModelProperty(value = "EMA同向时突破或跌破EMA线的K线柱数")
    private java.lang.Integer sameEmaNums;
    /**K线柱走势同向*/
    @Excel(name = "K线柱走势同向", width = 15)
    @ApiModelProperty(value = "K线柱走势同向")
    private java.lang.Boolean sameK;
    /**比较K线柱数（值为2或3或4）*/
    @Excel(name = "比较K线柱数（值为2或3或4）", width = 15)
    @ApiModelProperty(value = "比较K线柱数（值为2或3或4）")
    private java.lang.Integer sameKNums;

    @ApiModelProperty(value = "序列号id")
    private java.lang.String serialNumberId;

    private java.lang.String accountVarietyId;


    private java.lang.String params;

    @TableField(exist = false)
    private java.util.List<OtherParams> oparams;

    @TableField(exist = false)
    List<Map<String,String>> otherParam;


}
